package com.example.spark.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.spark.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EnterDao extends BaseMapper<User> {
    //根据username查询出username和password进行核对
    @Select("select * from user where username = #{username} and del_flag = 0")
    User selectUser(String username);


}
